
class Packet
{
    private Opcodes opcode = Opcodes.NONE;
    private int length = 0;
    private byte[] data;

    internal Opcodes Opcode
    {
        get { return opcode; }
        set { opcode = value; }
    }

    public int Length
    {
        get { return length; }
        set { length = value; }
    }

    public byte[] Data
    {
        get { return data; }
        set { data = value; }
    }
}
